package com.example.book_system.entity;

import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 该类为 读者 的实例类
 * @author BlueRose
 */
@TableName("reader")
public class Reader {
    private int id;
    private String name;
    private String account;
    private String password;
    private String phone;
    private int max;
    private String identity;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    @Override
    public String toString() {
        return "Reader{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", max=" + max +
                ", identity='" + identity + '\'' +
                '}';
    }

    public Reader(String name, String account, String password, String phone, int max, String identity) {
        this.name = name;
        this.account = account;
        this.password = password;
        this.phone = phone;
        this.max = max;
        this.identity = identity;
    }
    public Reader(){}
}
